Back to Page Objects
Up to Table of Contents
Ahead to Push Button Object

Picture Push Button Object

A Picture Push Button functions almost identically to a Push Button, except that it uses a graphic instead of a text label. The following figure shows an example of a Picture Push Button that lets the user click to display the next page in the application.

Note that if you create a multi-page application that uses Picture Push Buttons in a "page-turning" manner, it may be useful to put the buttons on a background page rather than on a standard page. This way, the buttons will continue to exist when the next page displays.

Use the Picture Push Button tool to draw Picture Push Buttons. The tool appears as follows:

Because of the similarities between Picture Push Buttons and Push Buttons, refer to the "Push Button Object" section for information and a lesson on how to use buttons.

Picture Push Button Appearance

Use the Filename property to specify the graphic that appears in a Picture Push Button. You can then control how the image appears by using the ButtonStyle property. The ButtonStyle property lets you choose from three states for the button's appearance. The three states are: Up, UpDown, and UpDownDisabled. You must have a section of the graphic for each state if you choose UpDown or UpDownDisabled.

Jamba divides the graphic depending on the state you choose, so all images must be of equal size and in one file. For example, if you choose UpDownDisabled the graphic file should have three sections, each one reflecting a different possible state. The following figure shows an example of a graphic file that could be used for the UpDownDisabled setting:

Up
Down
Disabled

If you set the ButtonStyle property to UpDownDisabled and the object is enabled, when the button first displays it appears in the Up state. When the user clicks on the button, it appears in the Down state. If you set the Enabled property to False, the button appears in the Disabled state.

Picture Push Button Object Properties, Methods, and Events

Picture Push Button objects support the following properties, methods, and events:

Properties Methods Events
ButtonStyle MoveAndSize() Click
Enabled SlideTo() Create
FileName
 
Enter
Height
 
Hide
HowToHide
 
Leave
HowToShow
 
LoadComplete
Name
 
Show
Visible
 
SlideToComplete
Width
 
 
X
 
 
Y
 
 

Back to Page Objects
Up to Table of Contents
Ahead to Push Button Object